************************************************************************************
* Replication Package 
* Title: Learning Camp, Language of Instruction, and Education Outcomes: Evidence from a Field Experiment in Malawi 
* Authors: Hyuncheol Kim and Seonghoon Kim
************************************************************************************

* This is the master do file of the project

clear all
set more off

* Seonghoon's Mac address
gl root_dir = "/Users/seonghoonkim/Dropbox/ongoing research/AFF/Chimutu Education Project 2 (Holiday School)/Data and code"
gl rawdata_dir = "/Users/seonghoonkim/Dropbox/ongoing research/AFF/Chimutu Education Project 2 (Holiday School)/Data and code/raw data"
gl cleaned_dir = "/Users/seonghoonkim/Dropbox/ongoing research/AFF/Chimutu Education Project 2 (Holiday School)/Data and code/cleaned"
gl log_dir = "/Users/seonghoonkim/Dropbox/ongoing research/AFF/Chimutu Education Project 2 (Holiday School)/Data and code/log"
gl dofile_dir = "/Users/seonghoonkim/Dropbox/ongoing research/AFF/Chimutu Education Project 2 (Holiday School)/Data and code/dofile"
gl figure_dir = "/Users/seonghoonkim/Dropbox/ongoing research/AFF/Chimutu Education Project 2 (Holiday School)/Data and code/figure"
gl table_dir = "/Users/seonghoonkim/Dropbox/ongoing research/AFF/Chimutu Education Project 2 (Holiday School)/Data and code/table"

* Seonghoon's Windows address
gl root_dir = "C:\Users\seonghoonkim.SMUSTF\Dropbox\ongoing research\AFF\Chimutu Education Project 2 (Holiday School)\Data and code"
gl rawdata_dir = "C:\Users\seonghoonkim.SMUSTF\Dropbox\ongoing research\AFF\Chimutu Education Project 2 (Holiday School)\Data and code\raw data"
gl cleaned_dir = "C:\Users\seonghoonkim.SMUSTF\Dropbox\ongoing research\AFF\Chimutu Education Project 2 (Holiday School)\Data and code\cleaned"
gl log_dir = "C:\Users\seonghoonkim.SMUSTF\Dropbox\ongoing research\AFF\Chimutu Education Project 2 (Holiday School)\Data and code\log"
gl dofile_dir = "C:\Users\seonghoonkim.SMUSTF\Dropbox\ongoing research\AFF\Chimutu Education Project 2 (Holiday School)\Data and code\dofile"
gl figure_dir = "C:\Users\seonghoonkim.SMUSTF\Dropbox\ongoing research\AFF\Chimutu Education Project 2 (Holiday School)\Data and code\figure"
gl table_dir = "C:\Users\seonghoonkim.SMUSTF\Dropbox\ongoing research\AFF\Chimutu Education Project 2 (Holiday School)\Data and code\table"



/** Hyuncheol kim **
gl root_dir = "C:\Users\hk788\Dropbox\Malawi Chimutu Education Project 3 (Summer School)\Data"
gl rawdata_dir = "C:\Users\hk788\Dropbox\Malawi Chimutu Education Project 3 (Summer School)\Data\raw data"
gl cleaned_dir = "C:\Users\hk788\Dropbox\Malawi Chimutu Education Project 3 (Summer School)\Data\cleaned"
gl log_dir = "C:\Users\hk788\Dropbox\Malawi Chimutu Education Project 3 (Summer School)\Data\log"
gl dofile_dir = "C:\Users\hk788\Dropbox\Malawi Chimutu Education Project 3 (Summer School)\Data\dofile"
gl figure_dir = "C:\Users\hk788\Dropbox\Malawi Chimutu Education Project 3 (Summer School)\Data\figure"
gl table_dir = "C:\Users\hk788\Dropbox\Malawi Chimutu Education Project 3 (Summer School)\Data\table"
*/


cd "$root_dir"

* start logging 

cap log using "$log_dir/language.txt", text replace


* Turn on Timer 1
timer on 1
* 1. Data cleaning, creation of new variables for analysis and labeling
do "$dofile_dir/cleaning.do"
* 2. Data merge
do "$dofile_dir/data merge.do"
* 4. Production of tables of regression analysis
do "$dofile_dir/EDCC_analysis.do"

* Turn off Timer 1
timer off 1

display r(t1)/60 "minutes"

log close

